/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.service.impl;
//package com.crossriver.crgis.database.service.impl;

import java.util.List;

import com.crossriver.crgis.database.model.Supporting_Document;
import com.crossriver.crgis.database.service.base.Supporting_DocumentLocalServiceBaseImpl;
import com.crossriver.crgis.database.service.persistence.History_Of_InformationPersistence;
import com.crossriver.crgis.database.service.persistence.Supporting_DocumentPersistence;
import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.kernel.exception.SystemException;

/**
 * The implementation of the supporting_ document local service.
 *
 * <p>
 * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link com.crossriver.crgis.database.service.Supporting_DocumentLocalService} interface.
 * </p>
 *
 * <p>
 * Never reference this interface directly. Always use {@link com.crossriver.crgis.database.service.Supporting_DocumentLocalServiceUtil} to access the supporting_ document local service.
 * </p>
 *
 * <p>
 * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
 * </p>
 *
 * @author Wole Adetiba
 * @see com.crossriver.crgis.database.service.base.Supporting_DocumentLocalServiceBaseImpl
 * @see com.crossriver.crgis.database.service.Supporting_DocumentLocalServiceUtil
 */
public class Supporting_DocumentLocalServiceImpl
	extends Supporting_DocumentLocalServiceBaseImpl {
	
	@BeanReference(type = Supporting_DocumentPersistence.class)
	protected Supporting_DocumentPersistence supportDoc;

	
	public List<Supporting_Document> getSupporting_DocumentByApplId(String applId) throws SystemException {
		
		return supportDoc.findByApplicationId(applId);
		
	}
	
	public List<Supporting_Document> getSupporting_DocumentByUserId(String userId) throws SystemException {
		
		return supportDoc.findByUserId(userId);
		
	}
}